﻿<%@ Page Language="C#" MasterPageFile="~/temp.master" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="z.Views.Product.WebForm1" Title="Untitled Page" %>
<asp:GridView ID="GridView1" runat="server"> <Columns> <asp:HyperLinkField HeaderText="Ver Ticket" Text="Ir Historial Ticket" DataNavigateUrlFormatString="~/DetailTicket.aspx?id={0}" DataNavigateUrlFields="IdTicket" /> </Columns> </asp:GridView> 
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> 
  <ItemTemplate> 
      <table width="100%" cellpadding="1" cellspacing="0" bgcolor="#92b0dd"> 
  <tr><td style="height:10px; background-color:White" colspan="2"></td></tr> 
      <tr> 
          <td style="background-color:White; height: 25px; width: 140px;">ID
          </td> 
          <td style="background-color:White; height: 25px;"><%#DataBinder.Eval(Container.DataItem, "ID").ToString()%> 
          </td> 
      </tr> 
      <tr> 
          <td style="background-color:White; width: 140px; height: 25px;">Name 
          </td> 
          <td style="background-color:White; height: 25px;"><%#DataBinder.Eval(Container.DataItem, "Name").ToString()%> 
          </td> 
      </tr> 
      <tr> 
          <td style="background-color:White; width: 140px; height: 25px;">Price 
          </td> 
          <td style="background-color:White; height: 25px;"><%#DataBinder.Eval(Container.DataItem, "Price").ToString()%> 
          </td> 
       </tr>
       <tr>   
          <td style="background-color:White; width: 140px; height: 25px;">Detail 
          </td> 
          <td style="background-color:White; height: 25px;"><%#DataBinder.Eval(Container.DataItem, "Detail").ToString()%> 
          </td>
       </tr>
    </table> 
  </ItemTemplate> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
      SelectCommand="SELECT [ID], [Name], [Price], [Detail] FROM [Product] where ([Id] = @Id)"> 
<SelectParameters> 
              <asp:QueryStringParameter Name="Id" QueryStringField="id" Type="Decimal" /> 
          </SelectParameters> 
  </asp:SqlDataSource>

